import request from '@/router/axios'

export function fetchHisDrugAntibioticList(query) {
  return request({
    url: '/his/hisdrugantibiotic/page',
    method: 'get',
    params: query
  })
}

export function addHisDrugAntibioticObj(obj) {
  return request({
    url: '/his/hisdrugantibiotic',
    method: 'post',
    data: obj
  })
}

export function getHisDrugAntibioticObj(id) {
  return request({
    url: '/his/hisdrugantibiotic/' + id,
    method: 'get'
  })
}

export function delHisDrugAntibioticObj(id) {
  return request({
    url: '/his/hisdrugantibiotic/' + id,
    method: 'delete'
  })
}

export function putHisDrugAntibioticObj(obj) {
  return request({
    url: '/his/hisdrugantibiotic',
    method: 'put',
    data: obj
  })
}
